<h1>Movies Owned By {$content.member.username}</h1>

<table width="100%">
	<tr>
		<td>{mm_alpha key="filter"}</td>
		<form method="GET" action="index.php">
		<input type="hidden" name="what" value="members">
		<input type="hidden" name="do" value="collection">
		<input type="hidden" name="id" value="{$content.member.id}">
		<input type="hidden" name="genre" value="{$content.genre}">
		<input type="hidden" name="filter" value="{$content.filter}">
		<td align="right">
			<input type="text" name="search" value="{$content.search}">
			<input type="submit" value="Search"><br />
			<a href="index.php?what=search&do=advanced">Advanced Search</a> |
			<a href="index.php?what=members&do=collection&id={$content.member.id}">Reset Results</a>
		</td>
	</form>
	</tr>
</table>
<table class="data_table" width="100%" cellpadding="5" cellspacing="0">
	<form method="POST" action="index.php" name="frm_browse">
	<input type="hidden" name="what" value="mymovies">
	<input type="hidden" name="do" value="add">
	<tr class="data_table_header">
		<td></td>
		<td>Title</td>
		<td>Owners</td>
		<td>In your collection?</td>
		<td></td>
	</tr>
	{if $content.movies}
		{foreach from=$content.movies item=m}
			<tr class="{cycle values="data_table_row_1,data_table_row_2"}">
				<td><input type="checkbox" name="id[]" value="{$m.id}"></td>
				<td title="{$m.title}">{$m.title|truncate:"35"} ({$m.year}) {imdb url=$m.imdb_url}</td>
				<td>{$m.owners}</td>
				<td>{if $m.in_collection}Tick{else}Cross{/if}</td>
				<td align="right">
					{if $m.in_collection == false}<a href="index.php?what=mymovies&do=add&id={$m.id}">Add to collection</a> | {/if}
					{if $m.in_collection == false && $m.in_wishlist == false}<a href="index.php?what=wishlist&do=add&id={$m.id}">Add to wishlist</a> | {/if}
					<a href="index.php?what=movie&do=view&id={$m.id}">View</a> |
					<a href="javascript: movie_list_add({$m.id});" title="Add this to your custom list">MARK</a>
				</td>
			</tr>
		{/foreach}
	{else}
		<tr>
			<td colspan="5" align="center">No movies can be found for {$content.genre_name}</td>
		</tr>
	{/if}
	</form>
</table>
{if $content.movies}
	<img src="templates/{$config.smarty_template}/images/up_arrow.gif"> Do With Selected:
	<a href="javascript: add_collection(gId('frm_browse'));">Add to collection</a> |
	<a href="javascript: add_wishlist(gId('frm_browse'));">Add to wishlist</a> |
	<!--<a>Request to borrow</a>-->
	{pagination pagination=$content.pagination}
{/if}
